home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / develop Issue 28 / develop Issue 28 code / Sketch / Source / AppleEvent / AERCoreSuite.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-25  |  1.6 KB  |  50 lines  |  [TEXT/CWIE]

  1. /****************************************************************************
  2.  * 
  3.  * AERCoreSuite.h
  4.  * 
  5.  * Functions related to OLS Support for the core suite
  6.  *
  7.  ****************************************************************************/
  8.  
  9. #ifndef __AERCORESUITE__
  10. #define __AERCORESUITE__
  11.  
  12. #include <AEObjects.h>
  13. #include <AERegistry.h>
  14. #include <AEPackObject.h>
  15.  
  16. // ----------------------------------------------------------------------------
  17. // This is the token record used for all tokens in the CORE Suite
  18. // This uses the "kitchen sink" token metaphor: a single token is used to represent
  19. // all objects, and some fields are only appropriate for some objects.
  20.  
  21. typedef struct CoreTokenRecord
  22. {
  23.     DescType                dispatchClass;        // the class that will dispatch this class
  24.     DescType                objectClass;        // the actual class of the tokenized object
  25.     DescType                propertyCode;        // property code, or typeNull if not a property token
  26.     long                    documentNumber;
  27.     long                    elementNumber;
  28.     WindowPtr            window;                // only used for window objects
  29. } CoreTokenRecord, *CoreTokenPtr, **CoreTokenHandle;
  30.  
  31. // ---------------------------------------------------------------------------
  32.  
  33. Boolean            InstallCoreSuiteHandlers            (void);
  34.  
  35.  
  36. void                InitCoreTokenRecord                    (CoreTokenRecord *token);
  37.  
  38. pascal OSErr 
  39. PropertyTokenFromAEListOfTokens(    DescType        desiredClass,
  40.                                      const AEDesc*        containerToken,
  41.                                              DescType        containerClass,
  42.                                              DescType        keyForm,
  43.                                     const AEDesc*        keyData,
  44.                                              AEDesc*        resultToken,
  45.                                              long             refCon);
  46.  
  47. // ---------------------------------------------------------------------------
  48.  
  49. #endif
  50.